<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="height:auto;top:246px;left:709px;"
    onParamsReceive="modelParamsReceive"> 
    <div component="$UI/system/components/justep/data/data" autoLoad="false"
      xid="nearData" idColumn="poi_id" onCustomRefresh="nearDataCustomRefresh" confirmRefresh="false"> 
      <column name="poi_id" type="String" xid="xid1"/>  
      <column label="资质证件地址" name="qualification_address" type="String" xid="xid2"/>  
      <column label="资质证件号" name="qualification_num" type="String" xid="xid3"/>  
      <column label="审核状态" name="audit_status" type="String" xid="xid4"/>  
      <column label="展示状态" name="display_status" type="String" xid="xid5"/>  
      <column label="失败原因" name="refuse_reason" type="String" xid="xid6"/> 
    </div>  
    <div component="$UI/system/components/justep/data/data" autoLoad="true"
      xid="addData" confirmRefresh="false" confirmDelete="false" idColumn="id"> 
      <data xid="default7">[{}]</data>  
      <column label="经营资质主体" name="related_name" type="String" xid="xid7"/>  
      <column label="经营资质证件号" name="related_credential" type="String" xid="xid8"/>  
      <column label="经营资质地址" name="related_address" type="String" xid="xid9"/>  
      <column name="id" type="String" xid="xid10"/>  
      <column name="related_proof_material" type="String" xid="xid11"/>  
      <column name="upload" type="String" xid="xid12"/> 
    </div> 
  </div>  
  <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"
    xid="panel1"> 
    <div class="x-panel-top" xid="top1" height="62"> 
      <div component="$UI/system/components/justep/toolBar/toolBar" class="x-toolbar form-inline x-toolbar-spliter"
        xid="toolBar1"> 
        <a component="$UI/system/components/justep/button/button" class="btn x-blue"
          label="添加地点" xid="addBtn" style="margin-left: 12px;" bind-enable="$model.canAddNum.get()>0"
          onClick="addBtnClick"> 
          <i xid="i1"/>  
          <span xid="span1">添加地点</span> 
        </a>  
        <span xid="span2" style="margin-left: 12px;"><![CDATA[剩余可添加地点数量：]]></span>  
        <span xid="span3" bind-text="$model.canAddNum.get()"/> 
      </div> 
    </div>  
    <div class="x-panel-content" xid="content1"> 
      <table component="$UI/system/components/justep/list/list" class="x-list table"
        xid="list1" data="nearData" autoLoad="false"> 
        <thead xid="thead1"> 
          <tr xid="tr1"> 
            <th xid="default1" class="table-style">资质证件地址</th>  
            <th xid="default2" class="table-style">资质证件号</th>  
            <th xid="default3" class="table-style">审核状态</th>  
            <th xid="default4" class="table-style">展示状态</th>  
            <th xid="default5" class="table-style">失败原因</th>  
            <th xid="default6" class="table-style">操作</th> 
          </tr> 
        </thead>  
        <tbody class="x-list-template" xid="listTemplate1"> 
          <tr xid="tr2"> 
            <td xid="td1" class="table-style"> 
              <span xid="span5" bind-text="val('qualification_address')"/> 
            </td>  
            <td xid="td2" class="table-style"> 
              <span xid="span6" bind-text="val('qualification_num')"/> 
            </td>  
            <td xid="td3" class="table-style"> 
              <span xid="span7" bind-text="$model.getAudit(val('audit_status'))"/> 
            </td>  
            <td xid="td4" class="table-style" bind-text="val('display_status')==1?&quot;展示中&quot;:&quot;未展示&quot;"> 
              <span xid="span8" bind-text="val('display_status')"/> 
            </td>  
            <td xid="td5" class="table-style"> 
              <span xid="span9" bind-text="val('refuse_reason')"/> 
            </td>  
            <td xid="td6" class="table-style"> 
              <a component="$UI/system/components/justep/button/button" class="btn x-blue btn-only-label"
                label="展示" bind-visible="val('display_status')==0" style="display:none"
                xid="showBtn" onClick="showBtnClick"> 
                <i xid="i2"/>  
                <span xid="span10">展示</span> 
              </a>  
              <a component="$UI/system/components/justep/button/button" class="btn x-blue btn-only-label"
                label="取消展示" xid="cancelShowBtn" style="display:none" bind-visible="val('display_status')==1"
                onClick="cancelShowBtnClick"> 
                <i xid="i3"/>  
                <span xid="span11">展示</span> 
              </a>  
              <a component="$UI/system/components/justep/button/button" class="btn x-blue btn-only-label"
                label="删除" xid="deleteBtn" style="margin-left: 12px;" onClick="deleteBtnClick"> 
                <i xid="i4"/>  
                <span xid="span12">删除</span> 
              </a> 
            </td> 
          </tr> 
        </tbody> 
      </table> 
    </div> 
  </div>  
  <div xid="addPop" class="x-full" style="z-index: 99;background:rgba(0,0,0,0.6);display:none"
    bind-visible="$model.addShow.get()==true"> 
    <div xid="div2" class="add-wrap"> 
      <div xid="div3" style="margin-bottom: 6px;text-align: right;"> 
        <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-top btn-only-icon"
          label="button" xid="closeBtn" icon="icon-android-close" style="padding: 0"
          onClick="closeBtnClick"> 
          <i xid="i5" class="icon-android-close"/>  
          <span xid="span4"/> 
        </a> 
      </div>  
      <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"
        xid="labelEdit1"> 
        <label class="x-label" xid="label1"><![CDATA[经营资质主体*]]></label>  
        <input component="$UI/system/components/justep/input/input" class="form-control x-edit"
          xid="input1" bind-ref="$model.addData.ref(&quot;related_name&quot;)" placeHolder="小程序帐号主体"/> 
      </div>  
      <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"
        xid="labelEdit2"> 
        <label class="x-label" xid="label2"><![CDATA[经营资质证件号*]]></label>  
        <input component="$UI/system/components/justep/input/input" class="form-control x-edit"
          xid="input2" bind-ref="$model.addData.ref(&quot;related_credential&quot;)" placeHolder="15位营业执照注册号9位组织机构代码18位或20位统一社会信用代码"/> 
      </div>  
      <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"
        xid="labelEdit3"> 
        <label class="x-label" xid="label3"><![CDATA[经营资质地址*]]></label>  
        <input component="$UI/system/components/justep/input/input" class="form-control x-edit"
          xid="input3" bind-ref="$model.addData.ref(&quot;related_address&quot;)" placeHolder="请填写营业执照住所，或组织机构代码证地址。"/> 
      </div>  
      <div component="$UI/system/components/justep/labelEdit/labelEdit" class="x-label-edit x-label20"
        xid="labelEdit5"> 
        <label class="x-label" xid="label5"><![CDATA[证明材料图片]]></label>  
        <input component="$UI/system/components/justep/input/input" class="form-control x-edit"
          xid="input4" bind-ref="$model.addData.ref(&quot;upload&quot;)" onChange="input4Change" placeHolder="提交能证明此经营资质主体与帐号主体相关的证明材料。"/> 
      </div>  
      <p xid="p1" style="color: #aaa;font-size: 12px;"><![CDATA[备注：*号选项为必填项；证明材料，经营资质主体与小程序同主体--不上传;经营资质主体与小程序非同主体--必须，bmp、png、jpeg、jpg或gif，大小不超过2M;]]></p>  
      <div component="$UI/system/components/justep/attachment/attachmentSimple"
        xid="attachmentSimple1" compress="false" style="width:70%;margin-left: 30%;" bind-ref='$model.addData.ref("upload")'> 
        <div class="x-attachment" xid="div4"> 
          <div class="x-attachment-content x-card-border" xid="div5"> 
            <div class="x-doc-process" xid="div6"> 
              <div class="progress-bar x-doc-process-bar" role="progressbar"
                style="width:0%;" xid="progressBar1"/> 
            </div>  
            <div data-bind="foreach:$attachmentItems" xid="div7"> 
              <div class="x-attachment-cell" xid="div8"> 
                <div class="x-attachment-item x-item-other" data-bind="click:$model.previewOrRemoveItem.bind($model),style:{backgroundImage:($model.previewPicture.bind($model,$object))()}"
                  xid="div9"> 
                  <a data-bind="visible:$model.$state.get() == 'remove'"
                    class="x-remove-barget" xid="a1"/> 
                </div> 
              </div> 
            </div>  
            <div class="x-attachment-cell" data-bind="visible:$state.get() == 'upload'"
              xid="div10"> 
              <div class="x-attachment-item x-item-upload" data-bind="visible:$state.get() == 'upload'"
                xid="div11"/> 
            </div>  
            <div class="x-attachment-cell" data-bind="visible:$state.get() == 'upload' &amp;&amp; $attachmentItems.get().length &gt; 0"
              xid="div12"> 
              <div class="x-attachment-item x-item-remove" data-bind="click:changeState.bind($object,'remove')"
                xid="div13"/> 
            </div>  
            <div style="clear:both;" xid="div14"/> 
          </div> 
        </div> 
      </div>  
      <p xid="loadtips" style="width:70%;margin-left: 30%;color: #f00;font-size: 12px;"></p><div component="$UI/system/components/justep/row/row" class="x-row" xid="row1"
        style="width: 70%;margin: 12px auto 0;text-align: center;"> 
        <div class="x-col" xid="col1"> 
          <a component="$UI/system/components/justep/button/button" class="btn x-blue"
            label="提交" xid="submitBtn" style="width: 80%" onClick="submitBtnClick"> 
            <i xid="i6"/>  
            <span xid="span13">提交</span> 
          </a> 
        </div>  
        <div class="x-col" xid="col2"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-default"
            label="取消" xid="cancelBtn" style="width: 80%" onClick="cancelBtnClick"> 
            <i xid="i7"/>  
            <span xid="span14">取消</span> 
          </a> 
        </div> 
      </div> 
    </div> 
  </div> 
</div>
